<template>
        <button v-permissions={authvariable:authvariable.del_account,authMode:authModes.openOrDisabled}>删除</button>
</template>
    
<script setup lang='ts'>
    import { authvariable,authModes} from '../configs/conter';

    // const vPermissions={
    //     mounted:(el:HTMLElement,binding:any)=>{
    //         const permissions=JSON.parse(localStorage.permissions)
    //         const curPer=binding.value;
    //         const has=permissions.includes(curPer)
    //         if(!has){
    //             el.parentNode?.removeChild(el)
    //         }
    //     }
    // }

</script>
    
<style>
    
</style>